﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SY.WebApiTool.Model
{

    public class MaterialSaveModel
    {
        public bool NumberSearch { get; set; } = true;
        public bool ValidateFlag { get; set; } = true;
        public bool IsDeleteEntry { get; set; } = true;
        /// <summary>
        /// 如果是更新单据而不是新增一个单据，可以设置这个数据集合，内容为字段标识，使用逗号分隔，如果需要更新表体数据，则需要填写表体的标识。
        /// </summary>
        public object[] NeedUpDateFields { get; set; }

        public string[] NeedReturnFields { get; set; } = { "FMATERIALID", "FNumber", "FName" };
        public string SubSystemId { get; set; }
        public Material[] Model { get; set; }
        public int BatchCount { get { return Model.Count(); } set { BatchCount = value; }  }
    }

}
